/* 
 * File:   SettingDlg.h
 * Author: Morpheus
 *
 * Created on 25 juin 2013, 08:31
 */

#ifndef _SETTINGDLG_H
#define	_SETTINGDLG_H

#include "ui_SettingDlg.h"
#include "MyBatchSetting.h"

class SettingDlg : public QDialog {
    Q_OBJECT
public:
    SettingDlg(QWidget* parent);
    virtual ~SettingDlg();

    MyBatchSetting getBatchSetting() const;
    void setBatchSetting(const MyBatchSetting& v);

protected Q_SLOTS:
    void on_browseFolderNative_stateChanged(const int& v);
    void on_color_currentIndexChanged(const int& v);
    void on_sorterFileId_currentIndexChanged(const int& v);
    void on_sorterFileParam_textChanged(const QString& v);
    void on_createScriptBefore_stateChanged(const int& v);
    void on_defaultSaveFormat_currentTextChanged(const QString& v);
    void on_defaultSavePatern_textChanged(const QString& v);
    void on_margingBottom_valueChanged(const double& v);
    void on_margingLeft_valueChanged(const double& v);
    void on_margingRight_valueChanged(const double& v);
    void on_margingTop_valueChanged(const double& v);
    void on_mdiShowMode_currentIndexChanged(const int& v);
    void on_orientation_currentIndexChanged(const int& v);
    void on_paperSize_currentIndexChanged(const int& v);
    void on_resolution_currentIndexChanged(const int& v);
    void on_scriptBeforePatern_textChanged(const QString& v);

private:
    Ui::SettingDlg widget;
    MyBatchSetting m_setting;
};

#endif	/* _SETTINGDLG_H */
